package com.menusifu.onlineorder.mongo.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

@Document(collection = "SeatingAreas")
public class SeatingAreas implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id : 22
     * merchantId : M000007332
     * lastUpdated : 2019-02-18T07:33:51Z
     * createdOn : 2019-02-18T07:33:51Z
     * deleted : true
     * name : ZHRtest
     */
    @Id
    private String _id;

    private Integer id;
    private String merchantId;
    private Date lastUpdated;
    private Date createdOn;
    private boolean deleted;
    private String name;

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }


    @Override
    public String toString() {
        return "SeatingAreas{" +
                "_id='" + _id + '\'' +
                ", id=" + id +
                ", merchantId='" + merchantId + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", createdOn=" + createdOn +
                ", deleted=" + deleted +
                ", name='" + name + '\'' +
                '}';
    }
}
